00001 <?php 00002 /*--------------------------------------------------------------------------+ 00003 This file is part of eStudy. 00004 ressourcen/classes/archiver/class.archiveprovider.inc.php 00005 - Module group: File Manager 00006 - Description: Interface "ArchiveProvider" 00007 - Version: $Id: interface.archiveprovider.inc.php 2348 2009-06-04 13:29:47Z commana $ 00008 - Author(s): Bjoern Kasteleiner <bjoern.kasteleiner@mni.fh-giessen.de> 00009 +---------------------------------------------------------------------------+ 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or any later version. 00014 +---------------------------------------------------------------------------+ 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 +--------------------------------------------------------------------------*/ 00023 00024 if ( !defined("PATH_TO_ROOT") ) { 00025 define( "PATH_TO_ROOT", "../../../" ); 00026 } 00027 00028 require_once (PATH_TO_ROOT."ressourcen/classes/filemanager/class.folder.inc.php"); 00029 00040 interface ArchiveProvider { 00041 public function __construct(Folder $folder, $recursion = FALSE, $tempFile = null); 00042 public function __destruct(); 00043 public function setRecursion($recursion); 00044 public function getRecursion(); 00045 public function setTempFile($tempFile); 00046 public function getTempFile(); 00047 public function setFolder(Folder $folder); 00048 public function getFolder(); 00049 public function createArchive(); 00050 public function sendArchive(); 00051 public static function checkArchiveSize(Folder $folder, $recursion); 00052 } 00053 00054 ?>
1.6.1